//
//  WXPInputNewCardGetCodeView.h
//  MexicoLoan
//
//  Created by wxp on 2025/3/12.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface WXPInputNewCardGetCodeView : UIView

@property (nonatomic, strong) UIView * backView;
@property (nonatomic, strong) UILabel * titleLabel;
@property (nonatomic, strong) UIButton * closeBtn;
@property (nonatomic, strong) UIImageView * imagePhone;
@property (nonatomic, strong) UILabel * phoneLabel;

@property (nonatomic, strong) UIView * verificacionBackView;
@property (nonatomic, strong) UITextField * verificacionTextField;
@property (nonatomic, strong) UIButton * codigoBtn;
@property (nonatomic, strong) UILabel * timeLabel;

@property (nonatomic, strong) UILabel * errorLabel;

@property (nonatomic, strong) UIButton * enviarBtn;

@property (nonatomic, strong, nullable) dispatch_source_t timer;

@property (nonatomic, copy)void(^blockSendSmsClick)(void);
@property (nonatomic, copy)void(^blockEnviarClick)(void);

#pragma mark - 刷新view
- (void)startCountdown;
- (void)resetViewWithModel:(id)model;
- (void)resetErrorLabelWithErrorStr:(NSString *)errorStr;
- (void)resetViewAndTimer;

@end

NS_ASSUME_NONNULL_END
